package yanivosher.aiproject;

public class Pair {

	public int agent;
	public int opponent;
	/**
	 * @param agent
	 * @param opponent
	 */
	public Pair(int agent, int opponent) {
		super();
		this.agent = agent;
		this.opponent = opponent;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + agent;
		result = prime * result + opponent;
		return result;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Pair other = (Pair) obj;
		if (agent != other.agent)
			return false;
		if (opponent != other.opponent)
			return false;
		return true;
	}
	
}
